﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="admin_ad_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManger1" runat="server" AutoSizePanelID="Grid1"/>
    <f:Panel ID="Panel1" runat="server" BodyPadding="3px" Title="Panel" ShowBorder="false"
        ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
        <Items>
            <f:Grid ID="Grid1" EnableFrame="false" BoxFlex="1" EnableCollapse="true" ShowBorder="false"
                ShowHeader="false" runat="server" EnableCheckBoxSelect="false" OnRowCommand="Grid1_RowCommand"
                EnableTextSelection="true" DataKeyNames="ID" OnPageIndexChange="Grid1_PageIndexChange"
                AllowPaging="true" IsDatabasePaging="true" PageSize="20" ForceFit="true">
                <Toolbars>
                    <f:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            
                            <f:TextBox ID="tbxcx1" runat="server" Label ="以排序值查询"></f:TextBox>
                            <f:Label runat ="server" Text ="到"></f:Label>
                            <f:TextBox ID="tbxcx2" runat="server"></f:TextBox>

                            <f:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click">
                            </f:Button>
                            <f:Button ID="btnAdd" runat="server" Text="新增友情链接">
                            </f:Button>
                        </Items>
                    </f:Toolbar>
                </Toolbars>
                <Columns>
                    
                    <f:BoundField Width="100px " DataField="Name" HeaderText="名称" TextAlign="Center"/>
                    <%--<f:ImageField Width="100px" DataImageUrlField="Logo" HeaderText="Logo" TextAlign="Center" ImageHeight="100" ImageWidth="100" />--%>
                    <f:BoundField Width="150px" DataField="url" HeaderText="链接地址" TextAlign="Center" />
                    <f:BoundField Width="100px" DataField="Sort" HeaderText="排序(值越大越前)" TextAlign="Center" />
                    <f:BoundField Width="150px" DataField="Remarks" HeaderText="备注" TextAlign="Center" />

                    <f:TemplateField Width="60px" TextAlign="Center">
                        <ItemTemplate>
                            <a href="javascript:<%# GetEditUrl(Eval("ID"), Eval("name")) %>">编辑</a>
                        </ItemTemplate>
                    </f:TemplateField>
                    <f:LinkButtonField TextAlign="Center" ColumnID="btnDel" Width="60px" Icon="Delete"
                        ToolTip="删除" ConfirmText="确认删除？" CommandName="btnDel" />

                </Columns>
            </f:Grid>
        </Items>
    </f:Panel>
    <f:Window ID="Window1" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
        Target="Top" EnableResize="true" runat="server" IsModal="true" Width="430px"
        Height="350px">
    </f:Window>
    </form>
</body>
</html>
